﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Arch.Poc.Services.Contracts
{
    [ServiceContract]
    public interface IService<T> where T : class, new()
    {
        [OperationContract]
        T Load(int id);

        [OperationContract]
        IEnumerable<T> FindAll();

        [OperationContract]
        T Create(T todo);

        [OperationContract]
        T Update(T todo);

        [OperationContract]
        T Delete(T todo);
    }
}
